package com.niit.users.pojo;

import lombok.Data;

/**
 * 管理员Pojo
 * 
 * @author DELL
 *
 */
@Data
public class TbBusTimeable {
    private int timetableId;
    private int busId;
    private String departureStation;
    private String departureTime;
    private String passStation;
    private String terminalStation;
    private String arrivalTime;
    private float ticketRate;
    
    public void printTitle() {
        String splitStr = "\t\t";
        StringBuffer sb = new StringBuffer();
        sb.append("班次Id").append(splitStr);
        sb.append("巴士Id").append(splitStr);
        sb.append("起始站").append(splitStr);
        sb.append("发车时间").append(splitStr);
        sb.append("经停站").append(splitStr);
        sb.append("终点站").append(splitStr);
        sb.append("抵达终点时间").append(splitStr);
        sb.append("票价").append(splitStr);
        System.out.println(sb.toString());
    }
    
    public void printInfo() {
        String splitStr = "\t\t";
        StringBuffer sb = new StringBuffer();
        sb.append(timetableId).append(splitStr);
        sb.append(busId).append(splitStr);
        sb.append(departureStation).append(splitStr);
        sb.append(departureTime).append(splitStr);
        sb.append(passStation).append(splitStr);
        sb.append(terminalStation).append(splitStr);
        sb.append(arrivalTime).append(splitStr);
        sb.append(ticketRate).append(splitStr);
        System.out.println(sb.toString());
    }
    
    public void printInput() {
        String splitStr = ";";
        StringBuffer sb = new StringBuffer();
        sb.append(timetableId).append(splitStr);
        sb.append(busId).append(splitStr);
        sb.append(departureStation).append(splitStr);
        sb.append(departureTime).append(splitStr);
        sb.append(passStation).append(splitStr);
        sb.append(terminalStation).append(splitStr);
        sb.append(arrivalTime).append(splitStr);
        sb.append(ticketRate).append(splitStr);
        System.out.println("详情信息:" + sb.toString());
    }
}
